package com.example.yeujian5.yuejian5.service;

import com.example.yeujian5.yuejian5.bean.ClubBean;
import com.example.yeujian5.yuejian5.bean.TrainBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by wangmengmeng on 2017/9/30.
 */

public interface ClubService {

    @GET("lists/mod/club")
    Call<List<ClubBean>> getClubList(

    );
    @GET("nearclub")
    Call<List<ClubBean>> ClubList(

    );

    //俱乐部详情
    @GET("get/mod/club")
    Call<ClubBean> getclubById(
            @Query("id") String id

    );
    //搜索俱乐部
    @GET("lists/mod/club")
    Call<List<ClubBean>> getSearchClub(
            @Query("club_name") String club_name);
    //关注俱乐部
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> CollectClub(
            @Path("SessionID") String SessionID,
            @Path("userid") String userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );
    //获取俱乐部的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getClubState(
            @Path("fan_id") String fan_id,
            @Path("userid") String userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID

    );
    //获取俱乐部课程
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call <ClubBean> getclassinfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path ("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );
    @POST("get/mod/club/related/1/")
    Call<ClubBean> getVideoList(
            @Query("id") String id,
            @Query("map") String Clubvideo

    );
}
